package com.artPreter.service.impl;


import com.artPreter.mapper.EventExhibitionContentSectionMapper;
import com.artPreter.pojo.EventExhibitionContentSection;
import com.artPreter.service.IEventExhibitionContentSectionService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 活动展览栏目内容表 服务实现类
 * </p>
 *
 * @author jarvis
 * @since 2025-01-07
 */
@Service
public class EventExhibitionContentSectionServiceImpl extends ServiceImpl<EventExhibitionContentSectionMapper, EventExhibitionContentSection> implements IEventExhibitionContentSectionService {

    @Override
    public List<EventExhibitionContentSection> getMenuList() {
        return null;
    }

    @Override
    public List<EventExhibitionContentSection> getList(EventExhibitionContentSection eventExhibitionContentSection) {
        if(eventExhibitionContentSection.getEventId()!=null&&eventExhibitionContentSection.getSectionId()!=null){
            LambdaQueryWrapper<EventExhibitionContentSection> queryWrapper = new LambdaQueryWrapper<>();
            queryWrapper.eq(EventExhibitionContentSection::getEventId,eventExhibitionContentSection.getEventId());
            queryWrapper.eq(EventExhibitionContentSection::getSectionId,eventExhibitionContentSection.getSectionId());
            return this.baseMapper.selectList(queryWrapper);
        }
        return null;
    }
}
